package cn.itcast.wanxinp2p.account.mapper;

import cn.itcast.wanxinp2p.account.entity.Account;
import cn.itcast.wanxinp2p.common.DTO.account.AccountDTO;

public interface AccountMapper {

    /**
     * 校验手机号和验证码
     * @param mobile
     * @param key
     * @param code
     * @return
     */


    int register(Account account);

    Account countByMobile(String mobile);

    Account countByUserName(String username);

    void deleteBymobile(String mobile);
}